﻿/*
 *Copyright(C) 2020 by  GYYX All rights reserved.
 *Unity版本：2018.4.23f1 
 *作者:程一峰  
 *创建日期: 2021-05-07 
 *模块说明：
 *版本: 1.2
*/

using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;
using Sirenix.Utilities;
using Sirenix.Utilities.Editor;
using UnityEngine;
using Warfare.FSM;

namespace WarfareEditor.FSM
{
    /// <summary>
    /// 节点编辑窗口
    /// </summary>
    public class FSMNodeEditorWindow : OdinEditorWindow
    {

        public static void ShowWindow(FSMNode aNode)
        {
            var window = GetWindow<FSMNodeEditorWindow>();
            window.position = GUIHelper.GetEditorWindowRect().AlignCenter(500, 375);
            window.titleContent = new GUIContent("节点编辑");
            window.CurrentNode = aNode;
        }

        [Space(12)]
        [HideReferenceObjectPicker]
        [HideLabel]
        public FSMNode CurrentNode;

    }
}